<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateFeishuCallingCardFranchiseeSignRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feishu_calling_card_franchisee_sign_records', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('uid')->index('uid')->default(0)->comment('加盟上在rms上的user.id');
            $table->string('invitee_mobile', 20)->default('')->comment('被邀请人的手机号码');
            $table->string('invitee_shop_code', 255)->default('')->comment('被邀请人的开店的店铺列表，多个以半角逗号隔开');
            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->unsignedInteger('deletedAt')->index('deletedAt')->default(0)->comment('软删除时间');
            $table->collation = 'utf8mb4_general_ci';
            $table->comment = '加盟名片 - 加盟商成功签约表';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('feishu_calling_card_franchisee_sign_records');
    }
}
